package com.ruoyi.common.core.domain.SchoolTree;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.HashMap;

import java.util.List;
import java.util.Map;


@Data
@NoArgsConstructor
@AllArgsConstructor
public class School {

    private Long id;
    private String label;
    //private Map<Long, Grade> children = new HashMap<>();  // 存储年级对象;
    private List<Grade> children = new ArrayList<>();  // 存储年级对象的列表


    public School(Long id, String label) {
        this.id = id;
        this.label = label;

    }

}